const TokenKey = 'vue_admin_template_token'

export function getToken() {
  return sessionStorage.getItem(TokenKey)
}

export function setToken(token) {
  return sessionStorage.setItem(TokenKey, token)
}

export function setUsername(username) {
  return sessionStorage.setItem('username', username)
}

export function setSuper(is_super) {
  return sessionStorage.setItem('is_super', is_super)
}

export function getUsername() {
  return sessionStorage.getItem('username')
}

export function getSuper() {
  return sessionStorage.getItem('is_super')
}

export function removeAll() {
  return sessionStorage.clear()
}
